package com.whq.thrift.api.common.thriftserver;

import java.util.Map;

import org.apache.thrift.TException;

import com.whq.thrift.api.common.thriftserver.ApiRequest.Iface;

/**
 * 为扩展非接口类的调用服务
 * @author whq-mac
 */

public abstract class AbstractBaseService implements Iface  {
	public String handleRequest(Map<String, String> params, Map<String, String> ctx) throws TException {
		return doHandleRequest(params, ctx);
	}
	
	protected abstract String doHandleRequest(Map<String, String> params, Map<String, String> ctx);
	
}
